﻿using System;
using System.Runtime.Serialization;

using Dynamic.Core.Attributes;

namespace Dynamic.Core.Types
{
    /// <summary>
    /// 枚举类型枚举
    /// </summary>
    [DataContract]
    [EnumType(DisplayName = "枚举类型", Name = "EnumsType")]
    public enum EnumsType
    {
        /// <summary>
        /// 简单枚举
        /// </summary>
        [EnumMember]
        [EnumValue(DisplayName = "简单枚举", Name = "Normal", IsDefault = true)]
        Normal = 0,

        /// <summary>
        /// 标示枚举
        /// </summary>
        [EnumMember]
        [EnumValue(DisplayName = "标示枚举", Name = "Flags", IsDefault = false)]
        Flags
    }
 }
